package com.ding.learn.config;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.TreeMap;

public class IntegerTest {
    public static void main(String[] args) {
        Integer a = 1;
        Integer b = 2;
        Integer c = 3;
        Integer d = 3;
        Integer e = 321;
        Integer f = 321;
        Long g = 3L;
        Long h = 2L;

//        System.out.println(c == d);
//        System.out.println(e == f);
//        System.out.println(c==(a+b));
//        System.out.println(c.equals(a+b));
//        System.out.println(g==(a+b));
//        System.out.println(g.equals(a+b));
        System.out.println("name".hashCode());
        Map<String, String> hashMap = new HashMap<String, String>();
        hashMap.put("name","1");
        hashMap.put("aame1","2");
        System.out.println(hashMap.put("aame1","3"));
        hashMap.put("came3","4");
        hashMap.size();
//        hashMap.put(null,"kong");
        for (Map.Entry<String, String> entry:
        hashMap.entrySet()) {
            System.out.println("key = " + entry.getKey() + ", value = " + entry.getValue());
        }
//        System.out.println(g.equals(a+h));
    }
}
